package com.matrix.java.chap_05;

/*
    加法
 */
public class Ex5_35 {
    public static void main(String[] args) {
        double sum = 0;
        for (int i = 1; i <= 625; i++) {
            double denominator = Math.pow(i, 0.5) + Math.pow(i + 1, 0.5);
            double x = 1.0 / denominator;
            sum += x;
        }
        System.out.printf("%.1f", sum);
    }
}
